{% comment %}
    Renders a hidden send code form for Account pages

    Accepts:
    - type: {String}
 
    Usage:
    {% render 'account-send-code-form', type: 'reset' %}
{% endcomment %}

<form action="{%- render 'account-api-host' -%}/auth/verification/email/send" id="send-code-form" class="as-send-code-form d-none" method="post" novalidate>
  <input type="text" name="channel" value="{{ type }}">
  <input type="text" name="email" class="as-email-param"/>

  <div class="as-invalid-error d-none">{{ 'customer.error.other_error' | t }}</div>
  <div class="as-frequent-error d-none">{{ 'customer.error.too_many_requests' | t }}</div>
  <div class="as-other-error d-none">{{ 'customer.error.other_error' | t }}</div>
</form>